<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "kd_province".
 *
 * @property integer $sf_id
 * @property string $sf_mingcheng
 */
class Province extends \yii\db\ActiveRecord
{
    public function beHaviors(){
        return [
            [
                'class' => \app\components\behaviors\LogBehavior::className(),
                'tableName' => '省',
                'attributeValue' => 'sf_mingcheng',
            ],
        ];
    }
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'kd_province';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['sf_mingcheng'], 'required'],
            [['sf_mingcheng'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'sf_id' => '省份ID',
            'sf_mingcheng' => '省份名称',
        ];
    }
}
